Repository navigation
Let eta and eta_RM vary over time - #1297
Open
marcelolafleur wants to merge 5 commits into
Open
marcelolafleur wants to merge 5 commits into
marcelolafleur wants to merge 5 commits into
Conversation
Government transfers are shared out by eta, held at one age-by-group matrix in every year. As the population ages, each person's transfer then drifts away from its intended profile. eta now takes a (T+S) x S x J path, like omega and rho. An S x J matrix is still accepted and held constant over time, so existing inputs give the same model parameters, bit for bit.
…o one Remittances are shared out by eta_RM the same way transfers are shared out by eta, so it gets the same (T+S) x S x J path. Older 2-D inputs, S x J or T x S, give the same model parameters as before. A warning now flags any period where eta or eta_RM does not sum to one, since households would then receive a different total than the aggregate.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1297 +/- ##
==========================================
+ Coverage 80.16% 80.20% +0.04%
==========================================
Files 24 24
Lines 7223 7245 +22
==========================================
+ Hits 5790 5811 +21
- Misses 1433 1434 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
This was referenced Nov 24, 2026
…s that a 2-D eta passed directly to adjust now fails validation
marcelolafleur
marked this pull request as ready for review
November 25, 2026 22:28
Contributor
Author
|
Ready for review. One note on versions: this PR sets 0.25.4 on the assumption that #1279 merges first as 0.25.3. If they go in the other order, I'll renumber. |
marcelolafleur
added a commit
to marcelolafleur/OG-ETH
that referenced
this pull request
Nov 25, 2026
… fixed allocation matrix
marcelolafleur
added a commit
to marcelolafleur/OG-ETH
that referenced
this pull request
Nov 26, 2026
…onsumption of the poorest by age
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Government transfers and remittances are shared out across ages and income groups by
etaandeta_RM. Each was a single age-by-group matrix used in every year. When the population changes over the transition, a fixed matrix gives each age the same slice of the total however many people are in it, so each person's transfer drifts away from its intended profile. In OG-ETH, where the population ages fast, using the long-run matrix from the first year gives the poorest 85-year-olds about 10 times their intended transfer, and 95-year-olds 55 to 65 times, while adults in their twenties get about half of theirs or less. The gap narrows only slowly as the population approaches its long-run shape.This changes the results that matter for the poorest households. Comparing two OG-ETH runs that differ only in this, totals such as output and consumption move by less than half a percent, but one matrix made poor older people look well off: in 2025 the poorest 85-year-olds consumed 119 thousand birr a year instead of 22, and young adults a little less than they should. Left, Ethiopia's main safety net in 2025 as OG-ETH models it; right, consumption of the poorest quarter:
This lets both parameters take a path by year, like
omegaandrho. A single matrix is still accepted and held constant over time (as is the older year-by-age form ofeta_RM), so existing calibrations get the same parameters, bit for bit.Specificationsnow also warns when a year's shares do not add up to one, since households would then receive a different total than the aggregate.Tests check that both parameters accept either form and that a single matrix gives the same parameters as before. The CI test selection passes locally (872 passed).